#ifndef MY_HEADER_H
#define MY_HEADER_H

#include "myHeader.h"

// tlvPacket

typedef struct {
    int type; // 0表示未传输，非0表示传输字节数
    int length;
    char value[1000];
}tlvPacket;

int gets_server(int sockfd,char*path);
int puts_server(int sockfd,char*path);
int sendn(int sockfd, char *p, int len);
int recvn(int sockfd, char *p, int len);
int isFileExist(char *filename);

#endif

